﻿using Newtonsoft.Json;

namespace BLWCMS.Core.Helpers
{
    public static class ResCode
    {
        /// <summary>
        /// 邮件发送失败
        /// </summary>
        /// <returns></returns>
        public static string M500()
        {
            var res = new {code = "M500", msg = "邮件发送失败！"};
            return JsonConvert.SerializeObject(res);
        }

        /// <summary>
        /// 邮件发送成功
        /// </summary>
        /// <returns></returns>
        public static string M200()
        {
            var res = new {code = "M200", msg = "邮件发送成功！"};
            return JsonConvert.SerializeObject(res);
        }
    }
}